package com.ea.modular.model.sys;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * 代码生成模型
 * @author jun
 *
 */
public class GenerateInput implements Serializable {

	private static final long serialVersionUID = -2870071259702969061L;

	/**
	 *js路径
	 */
    private String jspath;
    /**
     * 页面路径
     */
    private String pagepath;
    /**
     * 页面名称
     */
    private String pagename;

	/**
	 * 保存路径
	 */
	private String path;

	private String tableName;

	/**
	 * bean包名
	 */
	private String beanPackageName;

	/**
	 * java类名
	 */
	private String beanName;
	/**
	 * dao包名
	 */
	private String daoPackageName;

	/**
	 * dao类名
	 */
	private String daoName;
	/**
	 * controller包名
	 */
	private String controllerPkgName;
	/**
	 * controller类名
	 */
	private String controllerName;
	
	/**
	 * service包名
	 */
	private String servicePkgName;
	
	/**
	 * service类名
	 */
	private String serviceName;
	
	
	
	/**
	 * 字段名
	 */
	private List<String> columnNames;
	/**
	 * 属性名
	 */
	private List<String> beanFieldName;
	/**
	 * 成员变量类型
	 */
	private List<String> beanFieldType;
	/**
	 * 默认值
	 */
	private List<String> beanFieldValue;
	
	
	public String getJspath() {
		return jspath;
	}

	public void setJspath(String jspath) {
		this.jspath = jspath;
	}

	public String getPagepath() {
		return pagepath;
	}

	public void setPagepath(String pagepath) {
		this.pagepath = pagepath;
	}

	public String getPagename() {
		return pagename;
	}

	public void setPagename(String pagename) {
		this.pagename = pagename;
	}

	////////转变字段/////
	private String dbcolumns;
	private String javabeanName;
	private String javabeanType;
	private String javabeanVaule;
    public String getDbcolumns() {
		return dbcolumns;
	}

	public void setDbcolumns(String dbcolumns) {
		String[] arrays = dbcolumns.split(";");	
		List<String> list = new ArrayList<String>(arrays.length);
		Collections.addAll(list, arrays);
		setColumnNames(list);
		this.dbcolumns = dbcolumns;
	}

	public String getJavabeanName() {
		return javabeanName;
	}

	public void setJavabeanName(String javabeanName) {
		String[] arrays = javabeanName.split(";");	
		List<String> list = new ArrayList<String>(arrays.length);
		Collections.addAll(list, arrays);
		setBeanFieldName(list);
		this.javabeanName = javabeanName;
	}

	public String getJavabeanType() {
		return javabeanType;
	}

	public void setJavabeanType(String javabeanType) {
		String[] arrays = javabeanType.split(";");	
		List<String> list = new ArrayList<String>(arrays.length);
		Collections.addAll(list, arrays);
		setBeanFieldType(list);
		this.javabeanType = javabeanType;
	}

	public String getJavabeanVaule() {
		return javabeanVaule;
	}

	public void setJavabeanVaule(String javabeanVaule) {
		String[] arrays = javabeanVaule.split(";");	
		List<String> list = new ArrayList<String>(arrays.length);
		Collections.addAll(list, arrays);
		setBeanFieldValue(list);
		this.javabeanVaule = javabeanVaule;
	}

	/////////转变字段///////////
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getBeanPackageName() {
		return beanPackageName;
	}

	public void setBeanPackageName(String beanPackageName) {
		this.beanPackageName = beanPackageName;
	}

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public String getDaoPackageName() {
		return daoPackageName;
	}

	public void setDaoPackageName(String daoPackageName) {
		this.daoPackageName = daoPackageName;
	}

	public String getDaoName() {
		return daoName;
	}

	public void setDaoName(String daoName) {
		this.daoName = daoName;
	}

	public String getControllerPkgName() {
		return controllerPkgName;
	}

	public void setControllerPkgName(String controllerPkgName) {
		this.controllerPkgName = controllerPkgName;
	}

	public String getControllerName() {
		return controllerName;
	}

	public void setControllerName(String controllerName) {
		this.controllerName = controllerName;
	}

	
	public String getServicePkgName() {
		return servicePkgName;
	}

	public void setServicePkgName(String servicePkgName) {
		this.servicePkgName = servicePkgName;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public List<String> getColumnNames() {
		return columnNames;
	}

	public void setColumnNames(List<String> columnNames) {
		this.columnNames = columnNames;
	}

	public List<String> getBeanFieldName() {
		return beanFieldName;
	}

	public void setBeanFieldName(List<String> beanFieldName) {
		this.beanFieldName = beanFieldName;
	}

	public List<String> getBeanFieldType() {
		return beanFieldType;
	}

	public void setBeanFieldType(List<String> beanFieldType) {
		this.beanFieldType = beanFieldType;
	}

	public List<String> getBeanFieldValue() {
		return beanFieldValue;
	}

	public void setBeanFieldValue(List<String> beanFieldValue) {
		this.beanFieldValue = beanFieldValue;
	}

	@Override
	public String toString() {
		return "GenerateInput [path=" + path + ", tableName=" + tableName + ", beanPackageName=" + beanPackageName
				+ ", beanName=" + beanName + ", daoPackageName=" + daoPackageName + ", daoName=" + daoName
				+ ", controllerPkgName=" + controllerPkgName + ", controllerName=" + controllerName
				+ ", servicePkgName=" + servicePkgName + ", serviceName=" + serviceName + ", columnNames=" + columnNames
				+ ", beanFieldName=" + beanFieldName + ", beanFieldType=" + beanFieldType + ", beanFieldValue="
				+ beanFieldValue + "]";
	}

	
	
	
}
